//app.js
App({
  onLaunch: function () {},
  myLogin: function(e) {
    var s = this, o = wx.getStorageSync('openid') || '';
    wx.getSetting({
      success(t) {
        t.authSetting['scope.userInfo'] && o != '' ? '' : wx.showModal({
          title: '授权提醒',
          content: '尚未进行授权，请点击确定跳转到授权页面进行授权。',
          showCancel: false,
          success(res) {
            if (res.confirm) {
              wx.redirectTo({
                url: '/pages/tologin/tologin',
              })
            }
          }
        })
      }
    })
  },
  globalData: {
    userInfo: null
  },
  siteInfo: require("siteinfo.js")
})